From c352056c41c52c5a048dafa652596841badaf3fe Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 15 Mar 1993 06:05:17 +0000 Subject: [PATCH] (SELECTION_EVENT_DISPLAY): New macro. (SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION) (SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY) (SELECTION_EVENT_TIME): New macros. (struct selection_input_event): New structure. --- src/xterm.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/xterm.h b/src/xterm.h index b0744a0cfe2..6fce7eb2a55 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -545,3 +545,31 @@ struct scroll_bar { #define PIXEL_TO_CHAR_HEIGHT(f, height) \ (PIXEL_TO_CHAR_ROW (f, ((height) \ - (f)->display.x->internal_border_width))) + +/* If a struct input_event has a kind which is selection_request_event + or selection_clear_event, then its contents are really described + by this structure. */ + +/* For an event of kind selection_request_event, + this structure really describes the contents. */ +struct selection_input_event +{ + int kind; + Display *display; + Window requestor; + Atom selection, target, property; + Time time; +}; + +#define SELECTION_EVENT_DISPLAY(eventp) \ + (((struct selection_input_event *) (eventp))->display) +#define SELECTION_EVENT_REQUESTOR(eventp) \ + (((struct selection_input_event *) (eventp))->requestor) +#define SELECTION_EVENT_SELECTION(eventp) \ + (((struct selection_input_event *) (eventp))->selection) +#define SELECTION_EVENT_TARGET(eventp) \ + (((struct selection_input_event *) (eventp))->target) +#define SELECTION_EVENT_PROPERTY(eventp) \ + (((struct selection_input_event *) (eventp))->property) +#define SELECTION_EVENT_TIME(eventp) \ + (((struct selection_input_event *) (eventp))->time) -- 2.30.2